package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Produce_TurnReport", description = "流转卡报工记录")
@TableName(value = "Produce_TurnReport")
public class ProduceTurnReport extends FBaseEntity implements Serializable {


    
    @NotNull(message="[流转卡ID]不能为空")
    @ApiModelProperty("流转卡ID")
    @TableField(value = "turnId")
    private Long turnId;
    
    @NotNull(message="[报工工序Id]不能为空")
    @ApiModelProperty("报工工序Id")
    @TableField(value = "fromProcId")
    private Long fromProcId;
    
    @NotNull(message="[流入工序Id]不能为空")
    @ApiModelProperty("流入工序Id")
    @TableField(value = "toProcId")
    private Long toProcId;
    
    @NotNull(message="[部门ID]不能为空")
    @ApiModelProperty("部门ID")
    @TableField(value = "departmentId")
    private Long departmentId;
    
    @NotNull(message="[工作中心Id]不能为空")
    @ApiModelProperty("工作中心Id")
    @TableField(value = "workcenterId")
    private Long workcenterId;
    
    @NotNull(message="[派工单Id]不能为空")
    @ApiModelProperty("派工单Id")
    @TableField(value = "dispatchId")
    private Long dispatchId;
    
    @NotNull(message="[生产订单ID]不能为空")
    @ApiModelProperty("生产订单ID")
    @TableField(value = "taskBillId")
    private Long taskBillId;
    
    @NotNull(message="[生产订单子表ID]不能为空")
    @ApiModelProperty("生产订单子表ID")
    @TableField(value = "taskBillSubID")
    private Long taskBillSubID;
    
    @NotNull(message="[物料ID]不能为空")
    @ApiModelProperty("物料ID")
    @TableField(value = "materialId")
    private Long materialId;
    
    @NotBlank(message="[数量]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("数量")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "qty")
    private String qty;
    
    @NotBlank(message="[批次]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("批次")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "batchNo")
    private String batchNo;






}

